package com.sphd.restaurantsystem.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sphd.restaurantsystem.R;
import com.sphd.restaurantsystem.info.InorOutRecordInfo;

import java.util.List;

/**
 * Created by Hu on 2016/12/27.
 */

public class DateQueryAdapter extends BaseQuickAdapter<InorOutRecordInfo> {

    public DateQueryAdapter(int layoutResId, List<InorOutRecordInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, InorOutRecordInfo goodInOrOutInfo) {
        baseViewHolder.setText(R.id.good_name, goodInOrOutInfo.getDishes_name())
                .setText(R.id.in_no, "入库" + goodInOrOutInfo.getIn_number())
                .setText(R.id.out_no, "出库" + goodInOrOutInfo.getOut_number())
                .setText(R.id.sell_no, "销售" + goodInOrOutInfo.getSell_number());
    }
}
